﻿using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace MedLink2011.Core
{
    public class TextBoxVisibilityConverter: IValueConverter

    {

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value.ToString().Length > 1) return System.Windows.Visibility.Visible;
            else return System.Windows.Visibility.Collapsed;
        }

        public object ConvertBack(object value, Type targetType,object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}



